package engine.net.event
{
	import engine.net.datatype.ByteArrayEx;
	
	import flash.events.Event;
	
	import newx.utils.debug.IO;
	
	public class MsgEvent extends Event
	{
		public var _msgData:ByteArrayEx;
		
		public function MsgEvent(msgData:ByteArrayEx, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			_msgData		=	msgData;
			
			var	mType:int	=	_msgData.readShort();
						
			super(String(mType), bubbles, cancelable);
//			IO.traceLog("消息ID->",type);
		}
	}
}